package com.oocl.oopdemo.twoDay;

public class Gun {

	protected String qiangke;
	protected String banji;
	protected String danjia;
	
	
	public Gun(){
		
	}
	
	public Gun(String qiangke,String banji,String danjia){
		this(banji,danjia);  //调用构造器，必须首行调用
		this.qiangke=qiangke;
		
	}
	
	public Gun(String banji,String danjia){
		this.banji=banji;
		this.danjia=danjia;
	}
	
//	public static void shoot(){
//		System.out.println("shoot...");
//		String qiangke="inner";
//		System.out.println(qiangke);
//	}
	
	public  void shoot(){
		System.out.println("shoot...");//变量作用域不同
//		String qiangke="inner";
		System.out.println(qiangke);
	}
	
	
	
	
}
